package com.qf.service;

import com.qf.entity.User;
import com.qf.entity.UserVO;

import java.util.HashMap;
import java.util.List;
import java.util.Map;


public interface UserService {
    UserVO findUserWithOrdersById(int id);

    User findUserById(int id);

    List<User> findAll();

    int addUser(User user);

    int deleteUser(int id);

    int updateUser(User user);

    User loginByUsernameAndPassword(String username, String password);

    List<User> findUserByMap(Map<String, Object> map);

    List<User> SearchUserByMap(HashMap<String, String> map);

    boolean deleteByIds(List<Integer> ids);

    void updateUserBySet(User user);
}
